<template>
  <div id="login">
    <van-nav-bar :border="false">
      <template #left>
        <van-icon name="cross" size="0.75rem" color="#000" @click="goback" />
      </template>
    </van-nav-bar>
    <div class="login-title">
      <div class="title">欢迎登录智云健康</div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  setup() {
    const router = useRouter();
    const goback = () => {
      router.replace("/");
    };
    return {
      goback,
    };
  },
};
</script>
<style lang="less">
#login {
  .login-title {
    padding-left: 45px;
    padding-right: 45px;
    padding-top: 55px;
    .title {
      font-size: 24px;
    }
  }
}
</style>
